import request from '@/utils/request'

export function getAreaChildren(id, level) {
  return request({
    url: `/api/business/area/${id}/children/`,
    method: 'get',
    params: { level }
  })
}

export function getAreaAndParents(id) {
  return request({
    url: `/api/business/area/${id}/self-and-parents/`,
    method: 'get'
  })
}

export function getAreaAndParentsWithSiblings(id) {
  return request({
    url: `/api/business/area/${id}/self-and-parents-with-siblings/`,
    method: 'get'
  })
}

